package de.hsb.ai.agent;

import game.Move;

import java.util.List;
import java.util.Random;

import org.jgrapht.Graphs;

import de.hsb.ai.domain.MoveEvent;
import de.hsb.ai.util.map.ScotlandJadeMapHelper.ScotlandJadeVertex;

@SuppressWarnings("serial")
public class DemoDetective extends AbstractDetective {

	public DemoDetective() {
		super("demo");
	}
	
	private Random random = new Random(42L);

	@Override
	protected Move getMove(List<Move> options) {
		return options.get(Math.abs(random.nextInt()) % options.size());
	}
	
	@Override
	protected void handleMove(MoveEvent m) {
		super.handleMove(m);
		
		List<ScotlandJadeVertex> n = Graphs.neighborListOf(map, map.get(2));
		n.size();
	}

}
